import {
  SELECT_TYPE
} from "../../../utils/util"

// common/components/selected/selected.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    selectedTypeValue: {
      type: Object,
      value: SELECT_TYPE
    },

  },
  observers: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    selectedText: '全选',
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onAll() {

      this.triggerEvent('onAllSelect', {
        value: this.data.isAll
      })
    },
    onExpand() {
      this.triggerEvent('onExpand')
    }
  }
})